searchbar: reorganize
authorTimm Bäder <mail@baedert.org>
Sun, 4 Feb 2018 21:24:44 +0000 (22:24 +0100)
committerTimm Bäder <mail@baedert.org>
Sun, 4 Feb 2018 21:51:16 +0000 (22:51 +0100)
commitb726f60f9039b647d6c6b7fe4f417923d65140a2
tree61dbec3ec8d57b851bb24fd1e38b3c2ea17b0c34
parentfd148d1ef52735192171eb303fba9c9fb5d9ae07
searchbar: reorganize

Avoid the ugly priv->tool_box==NULL check in ::add (and ::remove) by
just not using template xml for this small class. Also, make sure the
GtkBin child is properly set and implement remove to also properly
remove it. Remove the manual widget margins and add some CSS for it.
Also switch to simply using a GtkCenterBox.
gtk/gtksearchbar.c
gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css
gtk/ui/gtksearchbar.ui [deleted file]